package java8;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.SortedSet;

public class Java8test {

	public static void main(String[] args) {
		String separator = ",";
		Arrays.asList("a", "c", "d").forEach(e -> {
			System.out.println(e + separator);
		});

		List<String> list = Arrays.asList("a", "s", "c", "f");
		list.sort((e1, e2) -> {
			int i = e1.compareTo(e2);
			return -i;
		});

		System.out.println(list);
		
		
	}

}
